home *** CD-ROM | disk | FTP | other *** search
/ Leonardo the Inventor / Leonardo The Inventor (93026)(Broderbund)(Riverdeep)(2004).iso / LEOWINMV / SHARED.DIR / 03078_Script_MISC HANDLERS < prev    next >
Text File  |  1996-04-01  |  1KB  |  49 lines

  1. -- -----------------------------------------------------------
  2. -- Handler pauseFrame loops the frame.
  3.  
  4. on pauseFrame
  5.   go the frame
  6. end
  7.  
  8. -- -----------------------------------------------------------
  9. -- Handler initLeoFlags clears the globals
  10.  
  11. on initLeoFlags
  12.   clearGlobals
  13. end
  14.  
  15. -- -----------------------------------------------------------
  16. -- Handler noPuppets shuts off the puppets in the first 24
  17. -- channels (from director 3.0)
  18.  
  19. on noPuppets
  20.   repeat with S = 1 to 24
  21.     puppetSprite S, false
  22.   end repeat
  23. end
  24.  
  25. -- -----------------------------------------------------------
  26. -- Handler setCurrentInvention sets the value of the global
  27. -- variable currentInvention to the given value.
  28.  
  29. on setCurrentInvention which
  30.   global currentInvention
  31.   
  32.   set currentInvention = which
  33. end
  34.  
  35. -- -----------------------------------------------------------
  36. -- Handler removeFromStage removes the given sprite from the
  37. -- stage.
  38.  
  39. on removeFromStage whichSprite
  40.   set the locV of sprite whichSprite = 1000
  41.   
  42.   updatestage
  43. end
  44.  
  45. -- -----------------------------------------------------------
  46. -- Handler playQuizGame 
  47. on playQuizGame
  48.   go movie "quizgam.dir"  
  49. end